package com.xigua.principle.singleresponsibility;

public class SingleResponsibility1 {
    public static void main(String[] args) {
        Vehicle vehicle = new Vehicle();
        vehicle.run("特斯拉");
    }

}

class Vehicle{

    public void run(String vehicle){
        System.out.println(vehicle+"在公路上跑");
    }

}